import 'package:situation/domain/chat/concat_list_domain.dart';
import 'package:situation/shared/shared.dart';
import 'package:dio/dio.dart';

class CommunicationRequest {
  /**
   * 通讯录
   */
  static Future<List<ConcatListDomain>> getAddressBookList() async {
    var response = await UtilHttp().get(
      '/addressBook/getAddressBookList',
    );
    return response['data']
        .map<ConcatListDomain>((item) => ConcatListDomain.fromJson(item))
        .toList();
  }

}
